package sample.model;

import com.alibaba.fastjson.JSONObject;

public class Address {

    private String code;

    private String name;

    Address(){

    }
    Address(String code, String name){
        this.code = code;
        this.name = name;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }

    public static void main(String[] args) {
        Address a = null;
        System.out.println(a);
    }
}
